package com.xxx.sso.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Collections;

/**
 * @author caiwl
 * @date 2020/6/1 10:48
 */
public class Slf4jDemo {
    private static final Logger logger = LoggerFactory.getLogger(Slf4jDemo.class);

    public static void main(String[] args) {
        logger.info("This is {} level msg", "INFO");

        if (logger.isDebugEnabled()) {
            logger.debug("There are now {} user accounts: {}", 0, Collections.EMPTY_LIST);
        }
    }
}
